#ifndef ITIMERSPEC_FROM_STR_H
#define ITIMERSPEC_FROM_STR_H

#include <ctime>
#include <string>
// Convert a string of the following form to an itimerspec structure:
// "value.sec[/value.nanosec][:interval.sec[/interval.nanosec]]".
// Optional components that are omitted cause 0 to be assigned to the
// corresponding structure fields.
void itimerspecFromStr(const std::string& str, struct itimerspec* tsp);

#endif // ITIMERSPEC_FROM_STR_H
